package cn.com.roy.thread.t3_2_5.join_sleep_1;

public class ThreadB  extends Thread{
    @Override
    public void run() {
        super.run();
        System.out.println(" b run begin time=" + System.currentTimeMillis());
        try {
            Thread.sleep(5000);
        } catch (InterruptedException e) {
            e.printStackTrace();
        }
        System.out.println(" b run end time=" + System.currentTimeMillis());
    }
    synchronized public void bService(){
        System.out.println(" 打印了bService time= " + System.currentTimeMillis());
    }
}
